import request from '@/utils/request'

// 查询采购在途列表
export function selectPurchaseOnTheWay(query) {
  return request({
    url: '/product/BiPurchaseOnTheWay/selectPurchaseOnTheWay',
    method: 'get',
    params: query
  })
}
// 查询采购在途列表
export function listBiPurchaseOnTheWay(query) {
  return request({
    url: '/product/BiPurchaseOnTheWay/list',
    method: 'get',
    params: query
  })
}
// 查询采购在途详细
export function getBiPurchaseOnTheWay(id) {
  return request({
    url: '/product/BiPurchaseOnTheWay/' + id,
    method: 'get'
  })
}

// 新增采购在途
export function addBiPurchaseOnTheWay(data) {
  return request({
    url: '/product/BiPurchaseOnTheWay',
    method: 'post',
    data: data
  })
}

// 修改采购在途
export function updateBiPurchaseOnTheWay(data) {
  return request({
    url: '/product/BiPurchaseOnTheWay',
    method: 'put',
    data: data
  })
}

// 删除采购在途
export function delBiPurchaseOnTheWay(id) {
  return request({
    url: '/product/BiPurchaseOnTheWay/' + id,
    method: 'delete'
  })
}
